package com.admin.rxandroidtest;

import com.admin.rxandroidtest.IRequstCode;

/**
 * Created by ** on 2018/8/15.
 * 数据获取的回调监听
 * 所以的对象均继承 IRequstCode
 */
public interface RequestListener<T extends IRequstCode> {

    public void onResquestSuccess(T result); //数据获取成功的回调
    public void onResquestError(int requestCode,int errorCode,String message); //数据获取失败的回调

}
